class RemoveFieldsAmistad < ActiveRecord::Migration
  def self.up
    remove_column :amistades, :fecha_aceptada
    remove_column :amistades, :fecha_rechazada
    remove_column :amistades, :molestado
    remove_column :amistades, :modificada
    add_column :amistades, :state, :string
  end

  def self.down
    add_column :amistades, :fecha_aceptada,  :datetime
    add_column :amistades, :fecha_rechazada, :datetime
    add_column :amistades, :molestado,       :boolean,  :default => false
    add_column :amistades, :modificada,      :boolean,  :default => false
    remove_column :amistades, :state
  end
end
